package Num28_20200324;

import java.util.Scanner;

public class Num28_20200324_hxj {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);
        int temp;
        //对数组事先声明并创建10个空间
        int[] a = new int[10];
        //把输入的数存储为数组
        for (int i = 0; i < 10; i++) {
            a[i] = s.nextInt();
        }
        //排序
        for (int i = 0; i < 10; i++) {
            for (int j = i + 1; j < 10; j++) {
                if (a[i] > a[j]) {
                    temp = a[i];
                    a[i] = a[j];
                    a[j] = temp;
                }
            }
        }
        //输出结果
        for (int i = 0; i < 10; i++) {
            System.out.print(a[i] + " ");
        }
    }

}
